﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true"
    CodeBehind="ExpertForOld.aspx.cs" Inherits="RN.ERP.Web.Person.ExpertForOld" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" type="text/css" href="../Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" />
    <link href="../Styles/skins/blue/css/style.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/skins/blue/css/style_msg.css" rel="stylesheet" type="text/css" />
    <link href="../Scripts/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Scripts/jquery.min.js"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.min.js"></script>
    <script src="../Scripts/ligerUI/js/common.js" type="text/javascript"></script>
    <script src="../Scripts/ligerUI/js/LG.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/plugins/ligerGrid.js"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/plugins/ligerLayout.js"></script>
    <script type="text/javascript" language="javascript">
        var gridUser;
        var area;
        var type;
        var name;
        $(function () {
            gridUser = $("#usergrid").ligerGrid({
                columns:
                [
                { display: '专家姓名', name: 'Name', align: 'center', width: 150, minWidth: 60 },
                { display: '企业名称', name: 'CorpName', align: 'left', width: 500, minWidth: 60 },
                { display: '手机号', name: 'Tel', align: 'left', width: 200, minWidth: 60 },
                { display: '身份证号', name: 'IDCard', align: 'left', width: 200, minWidth: 60 }
                ], showToggleColBtn: false, width: '97%', rowHeight: 20, fixedCellHeight: true, pageSize: 20, height: '90%',
                columnWidth: 100, frozen: false, sortName: 'Name', checkbox: false, rownumbers: true,
                data: []
            });
            area = $("#hdnAreaCode").val();
            type = $("#hdnType").val();
            name = $("#txtUserName").val();
            $.ajax({
                type: 'get',
                cache: false,
                dataType: 'json',
                url: '../handlers/PsnEmpInfoHandler.ashx?action=getnonpostexp&areaCode=' + area + '&type=' + type + '&name=' + escape(name) + '&r=' + Math.random(),
                success: function (result) {
                    gridUser.set('data', { Rows: result });
                }
            });

            $("#btnSearch").click(function () {
                area = $("#hdnAreaCode").val();
                type = $("#hdnType").val();
                name = $("#txtUserName").val();
                $.ajax({
                    type: 'get',
                    cache: false,
                    dataType: 'json',
                    url: '../handlers/PsnEmpInfoHandler.ashx?action=getnonpostexp&areaCode=' + area + '&type=' + type + '&name=' + escape(name) + '&r=' + Math.random(),
                    success: function (result) {
                        gridUser.set('data', { Rows: result });
                    }
                });
            });
        })
        
    </script>
    <style type="text/css">
        .cell-label
        {
            width: 80px;
        }
        #tabcontainer .l-tab-links
        {
            border-top: 1px solid #D0D0D0;
            border-left: 1px solid #D0D0D0;
            border-right: 1px solid #D0D0D0;
        }
        
        .projectgrid .l-selected .l-grid-row-cell, .projectgrid .l-selected
        {
            background: none;
        }
        
        .access-icon
        {
            background: url(../images/checkbox.gif) 0px 0px;
            height: 13px;
            line-height: 13px;
            width: 13px;
            margin: 4px 20px;
            display: block;
            cursor: pointer;
        }
        .access-icon-selected
        {
            background-position: 0px -13px;
        }
        .l-panel td.l-grid-row-cell-editing
        {
            padding-bottom: 2px;
            padding-top: 2px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:HiddenField ID="hdnAreaCode" ClientIDMode="Static" runat="server" />
        <asp:HiddenField ID="hdnType" ClientIDMode="Static" runat="server" />
        <div title="用户" tabid="userlist">
            专家姓名：<input id="txtUserName" type="text" /><input id="btnSearch" type="button" value="查询" />
            <hr />
            <div id="Div1" style="margin: 2px auto;">
            </div>
        </div>
        <div id="usergrid" style="margin: 2px auto;">
        </div>
    </div>
</asp:Content>
